﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace FasterWPF
{
    public static class GeometryExt
    {
        public static Geometry GetGeometryFromImage(object image)
        {
            return ((((image as Image).Source) as DrawingImage).Drawing as GeometryDrawing).Geometry;
        }
    }
}
